package com.histone.heartbeat.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDate;

@Entity
@Data
@Table(name = "user")
public class UserEntity {
    @Id
    //使用微信openid作为id
    private String id;
    @Column
    private String name;
    @Column
    private String email;
    @Column
    private String mobile;
    @Column
    private LocalDate createDate;
    @Column
    private String emailVerify;   //  Y/N   邮箱是否通过校验
    @Column
    private String mobileVerify;   //  Y/N   手机号是否通过校验
}
